import Vue from 'vue'
import App from './app'
import Router from 'vue-router'
import routes from './router'
import echarts from './directives/echarts.js'
import './assets/less/common.less'

Vue.use(Router)

// register directives
Vue.directive('echarts', echarts)

const router = new Router({
  routes
})

new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
